package com.xr.imp;

import com.bstek.dorado.common.*;
import com.bstek.dorado.data.*;
import com.bstek.dorado.view.*;
import com.bstek.dorado.view.data.*;
import com.bstek.dorado.view.control.*;
import com.xr.common.CommUtil;

/**
 * indexViewModel
 */
public class indexViewModel extends DefaultViewModel {
protected void initControls() throws Exception {
		super.initControls();
		if(!CommUtil.isAdmin()){
			this.getControl("buttonAdd").setIgnored(true);
			this.getControl("buttonDel").setIgnored(true);
			 
			//Dataset ds=getDataset("functionDataset");
			//((ViewField)ds.getField("LINK_URL")).setVisible(false);
		}
		
	}


  protected void doUpdateData(ParameterSet parameters, ParameterSet outParameters)
      throws Exception {
    // Add your code here
    super.doUpdateData(parameters, outParameters);
  }

}
